﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Common;
using System.ComponentModel.DataAnnotations;

namespace ElectrosLtd.Models
{
    public class CommentsModel
    {
        public Comment UsersComment { get; set; }
        public Product thisProduct { get; set; }
        public int productID { get; set; }

        [Required(ErrorMessage = "Comment cannot be left empty")]
        [StringLength(150, ErrorMessage = "Maximum length: 150 characters ")]
        public string Comment { get; set; }
    }
}